<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:t="http://myfaces.apache.org/tomahawk">


<ui:composition template="../../templates/template.xhtml">

	<ui:define name="title">
	 	Get the Document with the missing Court Stamp from Court Case Management System
	</ui:define>
	<ui:param name="page" value="home" />

	<ui:define name="header">
		<ui:include src="../../header.xhtml" />
	</ui:define>

	<ui:define name="menu">	
	<h:form>
	<div align="center">
			<br />
			<br />
				<h:commandButton value="Back"
				action="#{clerkOperationsPage.back}" styleClass="buttonClass" />
			<br />
			<br />
			
		</div>
	</h:form>
	</ui:define>

	<ui:define name="body">

		<h:form>
			<br />
			<h:outputText value="Court Received Stamp applied "
				rendered="#{clerkOperationsPage.renderDocImporterMessage}"
				styleClass="header" />
			<t:dataTable renderedIfEmpty="false"  id="courtReceivedStampedDocument"
				value="#{clerkOperationsPage.docWithCourtReceivedStamp}"
				var="stampedDocument">
				<h:column>
					<f:facet name="header">
						<h:outputText id="title" value="#{stampedDocument.getTitle}" />
					</f:facet>
				</h:column>
			</t:dataTable>

		</h:form>
		<h:form id="courtReceivedStampForm">			
			<br />
			<div id="bodypanel">
			<h:panelGrid columns="1" width="100%" styleClass="iCubed" >
				<f:facet name="header">
					<h:outputText value="Stamp a document with court received stamp"  />
				</f:facet>
			</h:panelGrid>
			<h:panelGrid columns="1" width="100%" styleClass="iCubed" >
				<f:facet name="header">
					<h:outputText value="Please note the following :"  />
				</f:facet>				
			</h:panelGrid>
			<h:panelGrid columns="1" width="100%" styleClass="iCubed" >				
				<h:column>	1. This operation should be conducted only when the document is already in the case management system, and it is missing the court stamp   </h:column>				
				<h:column>	2. The date of the stamp will be set to the attorney submitted date:  </h:column>	
			</h:panelGrid>
			
			
			<h:panelGrid width="100%" columns="3" styleClass="iCubed">
				
				<h:column> Enter Division ID </h:column>
				<h:column>
					<h:inputText id="divID" value="#{clerkOperationsPage.divisionID}" required="true"/>
				</h:column>

				<h:column>
					<h:message for="divID" styleClass="error" />
				</h:column>

			
				<h:column>	Select Document Title </h:column>
				
				
				<h:selectOneListbox id="documentTitle" binding="#{clerkOperationsPage.docLocalCodeUI}" required="true" immediate="true" /><br />
						
				<h:commandButton id="stampADocumentFromSustainWithCourtReceivedStamp" value="Apply stamp"
					action="#{clerkOperationsPage.stampADocumentFromSustainWithCourtReceivedStamp}"
					styleClass="buttonClass" />
		
				<h:column>
					<h:message for="stampADocumentFromSustainWithCourtReceivedStamp" styleClass="error" />
				</h:column>	
								
			</h:panelGrid> <br />
			
			</div>
			<br />
		</h:form>
		
	

	</ui:define>
</ui:composition>

</html>
